package com.machine.filling.function.main.activity;

import android.app.Dialog;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.StyleRes;
import android.widget.TextView;

import com.machine.filling.R;

/**
 * Created by Administrator on 2018/4/23 0023.
 */

public class NetNoticeDialog extends Dialog {

    private TextView tv_content;

    public NetNoticeDialog(@NonNull Context context) {
        this(context, R.style.Translucent_NoTitle);
        initView();
        setCanceledOnTouchOutside(false);
    }

    private void initView() {
        setContentView(R.layout.dialog_notice_error);
        tv_content = findViewById(R.id.tv_content);
        tv_content.setText("网络异常");
    }

    public NetNoticeDialog(@NonNull Context context, @StyleRes int themeResId) {
        super(context, themeResId);
    }

}
